﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BeatingMole
{
    /// <summary>
    /// Nguyễn Đặng Anh Duy
    /// MSSV : 11100204
    /// Email : itc.anhduy@gmail.com
    /// <summary>
    class CInfoCharacter
    {
        #region "Variable"
        private Texture2D _bgCharacter;
        private Texture2D _charAnhTu;
        private Texture2D _charOngSau;
        private Texture2D _charCoBa;
        private Texture2D _charBaNam;
        private Texture2D _btnDown;
        private Texture2D _btnPlay;
        private Texture2D _btnLoadGame;
        ContentManager _Content;

        private Rectangle _recCharAnhTu;
        private Rectangle _recCharOngSau;
        private Rectangle _recCharCoBa;
        private Rectangle _recCharBaNam;
        private Rectangle _recBtnDown;
        private Rectangle _recBtnPlay;
        private Rectangle _recBtnLoadGame;
        private Texture2D _bgBlack;
        #endregion

        #region "Properties"
        public Rectangle RecBtnLoadGame
        {
            set { _recBtnLoadGame = value; }
            get {return _recBtnLoadGame; }
        }
        public Texture2D BtnLoadGame
        {
            set { _btnLoadGame = value; }
            get { return _btnLoadGame; }
        }
        public Texture2D BgBlack
        {
            set { _bgBlack = value; }
            get { return _bgBlack; }
        }
        public Rectangle RecBtnPlay
        {
            set { _recBtnPlay = value; }
            get { return _recBtnPlay; }
        }
        public Texture2D BtnPlay
        {
            set { _btnPlay = value; }
            get { return _btnPlay; }
        }
        public Rectangle RecBtnDown
        {
            set { _recBtnDown = value; }
            get { return _recBtnDown; }
        }
        public Texture2D BtnDown
        {
            set { _btnDown = value; }
            get { return _btnDown; }
        }

        #region "Vị trí nhân vật"
        public Rectangle RecCharAnhTu
        {
            set { _recCharAnhTu = value; }
            get { return _recCharAnhTu; }
        }
        public Rectangle RecCharOngSau
        {
            set { _recCharOngSau = value; }
            get { return _recCharOngSau; }
        }
        public Rectangle RecCharCoBa
        {
            set { _recCharCoBa = value; }
            get { return _recCharCoBa; }
        }
        public Rectangle RecCharBaNam
        {
            set { _recCharBaNam = value; }
            get { return _recCharBaNam; }
        }
        #endregion
        #region "Ảnh nhân vật"
        public Texture2D CharAnhTu
        {
            set { _charAnhTu = value; }
            get { return _charAnhTu; }
        }
        public Texture2D CharOngSau
        {
            set { _charOngSau = value; }
            get { return _charOngSau; }
        }
        public Texture2D CharCoBa
        {
            set { _charCoBa = value; }
            get { return _charCoBa; }
        }
        public Texture2D CharBaNam
        {
            set { _charBaNam = value; }
            get { return _charBaNam; }
        }
        #endregion

        public Texture2D BGCharacter
        {
            set { _bgCharacter = value; }
            get { return _bgCharacter; }
        }
        #endregion

        #region "Constructor"
        public CInfoCharacter(ContentManager content)
        {
            _Content = content;
            BGCharacter = _Content.Load<Texture2D>(@"Resource/Maps/story_bg");
            BgBlack = _Content.Load<Texture2D>(@"Resource/Maps/Pause");
            BtnLoadGame = _Content.Load<Texture2D>(@"Resource/Menu/Settings/Save");
            CharAnhTu = _Content.Load<Texture2D>(@"Resource/Character/anhtu");
            CharOngSau = _Content.Load<Texture2D>(@"Resource/Character/ongsau");
            CharCoBa = _Content.Load<Texture2D>(@"Resource/Character/coba");
            CharBaNam = _Content.Load<Texture2D>(@"Resource/Character/banam");
            BtnDown = _Content.Load<Texture2D>(@"Resource/Buttons/btnDown");
            BtnPlay = _Content.Load<Texture2D>(@"Resource/Buttons/btnPlay");

            //Rectangle
            RecCharCoBa = new Rectangle(10, 10, CharCoBa.Width, CharCoBa.Height);
            RecCharAnhTu = new Rectangle(20 + CharCoBa.Width, 10, CharAnhTu.Width, CharAnhTu.Height);
            RecCharBaNam = new Rectangle(30 + (CharAnhTu.Width * 2), 10, CharBaNam.Width, CharBaNam.Height);
            RecCharOngSau = new Rectangle(40 + (CharBaNam.Width * 3), 10, CharOngSau.Width, CharOngSau.Height);
            RecBtnDown = new Rectangle(730, 30, BtnDown.Width, BtnDown.Height);
            RecBtnPlay = new Rectangle(720, 200, BtnPlay.Width, BtnPlay.Height);
            RecBtnLoadGame = new Rectangle(730, 115, BtnLoadGame.Width, BtnLoadGame.Height);
            
        }
        #endregion
    }
}
